from django.db import models
from django.utils.translation import ugettext_lazy as _

class Contact(models.Model):
    first_name = models.CharField(blank=True, max_length=100)
    last_name = models.CharField(blank=True, max_length=100)
    company = models.CharField(blank=True, max_length=100)
    is_company = models.BooleanField(default=False)
    address = models.CharField(blank=True, max_length=100)
    phone = models.CharField(blank=True, max_length=100)
    email = models.EmailField(blank=True)
    comment = models.TextField(blank=True)
    
    def __unicode__(self):
        return self.get_full_name()
    
    def get_full_name(self):
        return u'%s %s' % (self.first_name, self.last_name)